package com.example.demo2_review.self_study;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author zwp14
 * @create 2024/7/14 1:29
 * @description
 */
public class Test {
    public static void main(String[] args) {

    }
    static class A{
        private B b;

        public A(){

        }

        @Autowired
        public void setB(B b){
            this.b = b;
        }

        @PostConstruct
        public void init(){

        }
    }

    static class B{
        private A a;

        public B(){

        }

        @Autowired
        public void setA(A a){
            this.a = a;
        }

        @PostConstruct
        public void init(){

        }
    }
}
